package com.dgz.csmall.passport.service.impl;

import com.dgz.csmall.passport.dao.persist.mapper.RoleMapper;
import com.dgz.csmall.passport.pojo.vo.RoleListItemVO;
import com.dgz.csmall.passport.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author duguozheng
 * @Date 2023/05/28  16:50
 * @Description 管理员业务实现类
 * @Version 1.0
 */

@Slf4j
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    public RoleServiceImpl() {
        log.debug("创建业务类对象：RoleServiceImpl");
    }

    @Override
    public List<RoleListItemVO> list() {
        log.debug("开始处理【查询角色列表】的业务，无参数");
        List<RoleListItemVO> list = roleMapper.list();
        return list;
    }

}
